#pragma once
#ifndef SERIAL_H
#define SERIAL_H
#include <iostream>
#include <windows.h>
#include <string>
#include <vector>
#include <iomanip>
#include <chrono>
#include <thread>
using namespace std;

extern vector<unsigned char> send_readCommand;
unsigned char calcuCheckSum(vector<unsigned char> command);
class Serial
{
public:
	HANDLE hCom;
	bool open_serial(wstring com, size_t baudrate);
	
	string read_RFID_data();

	string read_weight_64();

	void closeHandle();

	Serial() = default;
};
#endif
